x86/PV: replace assertions in '0' debug key stack dumping
authorJan Beulich <jbeulich@suse.com>
Tue, 19 Oct 2021 08:07:42 +0000 (10:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 19 Oct 2021 08:07:42 +0000 (10:07 +0200)
commit525eac931794434593c39a1d1cd739ad8b326e27
tree00231f44a90fe068c324069bbbaf38a0624bc343
parent4843546fef5e024d5754f722fd01a8dfb482ac7d
x86/PV: replace assertions in '0' debug key stack dumping

While it was me to add them, I'm afraid I don't see justification for
the assertions: A vCPU may very well have got preempted while in user
mode. Limit compat guest user mode stack dumps to the containing page
(like is done when using do_page_walk()), and suppress user mode stack
dumping altogether for 64-bit domains.

Fixes: cc0de53a903c ("x86: improve output resulting from sending '0' over serial")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/traps.c